﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using ContractSingTowerMall;
using DTOSingTowerMall;
using FacadeSingTowerMall;

namespace ServiceHostSingTowerMall
{
   [ServiceBehavior(InstanceContextMode = InstanceContextMode.Single, ConcurrencyMode = ConcurrencyMode.Multiple)]
    public class ShopListService : IShopListService
    {
        VWStoreFacade stores = new VWStoreFacade();
 
        public List<StoreData> GetStoreList()
        {
            var storelists = new List<StoreData>();
            storelists = (from s in stores.GetStoreAndCategory() select new StoreData() { storeName = s.StoreName, subCategoryName=s.SubCategoryName, location=s.Location }).ToList();
            return storelists;
        }

    }

}
